package com.ruoyi.share.domain;

import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品备注对象 share_goods_remarks
 *
 * @author ruoyi
 * @date 2021-11-16
 */
@Data
@ToString
public class ShareGoodsRemarks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 备注id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsId;

    /** 备注类型： 0自定义备注，1固定备注 */
    @Excel(name = "备注类型： 0自定义备注，1固定备注")
    private Long remarksType;

    /** 前缀标题 */
    @Excel(name = "前缀标题")
    private String headline;

    /**
     * 固定备注
     */
    private List<ShareGoodsRemarksFixed> shareGoodsRemarksFixedList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setRemarksType(Long remarksType)
    {
        this.remarksType = remarksType;
    }

    public Long getRemarksType()
    {
        return remarksType;
    }
    public void setHeadline(String headline)
    {
        this.headline = headline;
    }

    public String getHeadline()
    {
        return headline;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("remarksType", getRemarksType())
            .append("headline", getHeadline())
            .toString();
    }
}
